import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

//引入axios
import axios from "axios";
//设置后台访问根路径
axios.defaults.baseURL ="http://localhost:8086/"
//挂载axios.挂载到vue原型上,这样就可以在所有的组件中通过this.$http访问axios
Vue.prototype.$http = axios;

Vue.config.productionTip = false
/*明确的安装*/
Vue.use(ElementUI);

new Vue({
  router,
  store,
  render: function (h) { return h(App) }
}).$mount('#app')
